package com.atstudy.headline.web.app.service;

import com.atstudy.headline.entity.Categories;
import com.atstudy.headline.web.app.vo.categories.CategoryVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author A
* @description 针对表【categories(内容分类表)】的数据库操作Service
* @createDate 2025-06-12 13:55:56
*/
public interface CategoriesService extends IService<Categories> {

    List<CategoryVO> getActiveCategoriesWithCount();


    /**
     * 获取所有分类及其内容数量
     * @return
     */
    List<Map<String, Object>> getCategoryContentCounts();
}
